From: Marco Trevisan (TreviƱo) Date: Thu, 27 Nov 2025 10:27:35 +0000 (+0100) Subject: overviewControls: Only import STARTUP_ANIMATION_TIME from layout X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~55^2^2~25 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8610ade140e6a76fa9838c99963153f58f7245cb;p=gnome-shell.git overviewControls: Only import STARTUP_ANIMATION_TIME from layout It's the only value we use from that module, and this would ensure that the value is actually imported and it's not potentially an undefined value Part-of: (cherry picked from commit 6cf67958a5f6003cb8d79ba5d120b15478455f75) --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 355d4f6d6..7c0e527e3 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -8,7 +8,6 @@ import St from 'gi://St'; import * as AppDisplay from './appDisplay.js'; import * as Dash from './dash.js'; -import * as Layout from './layout.js'; import * as Main from './main.js'; import * as Overview from './overview.js'; import * as SearchController from './searchController.js'; @@ -17,6 +16,8 @@ import * as WindowManager from './windowManager.js'; import * as WorkspaceThumbnail from './workspaceThumbnail.js'; import * as WorkspacesView from './workspacesView.js'; +import {STARTUP_ANIMATION_TIME} from './layout.js'; + export const SMALL_WORKSPACE_RATIO = 0.15; const DASH_MAX_HEIGHT_RATIO = 0.16; const VERTICAL_SPACING_RATIO = 0.02; @@ -817,8 +818,6 @@ class ControlsManager extends St.Widget { // We can't run the animation before the first allocation happens await this.layout_manager.ensureAllocation(); - const {STARTUP_ANIMATION_TIME} = Layout; - // Opacity this.ease({ opacity: 255,